var date = new Date();

console.log(date .toLocaleDateString()+"  "+date .getHours()+"时"); //获取当前日期